Annotation fixes
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 3 Apr 2020 14:30:56 +0000 (15:30 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 3 Apr 2020 14:30:56 +0000 (15:30 +0100)
Match the arguments name in the declaration and the definition, and make
sure we have the proper transfer annotations.

gdk/gdkdragsurface.h
gdk/gdktoplevellayout.c
gtk/gtkshortcutcontroller.h

index 61649bff76c0e3488d869e8c77d8dd22215cd63a..bc20416777bbec6bba1eb7a3405ac8a870c98474 100644 (file)
@@ -34,7 +34,7 @@ GDK_AVAILABLE_IN_ALL
 G_DECLARE_INTERFACE (GdkDragSurface, gdk_drag_surface, GDK, DRAG_SURFACE, GObject)
 
 GDK_AVAILABLE_IN_ALL
-gboolean gdk_drag_surface_present (GdkDragSurface *drag_icon,
+gboolean gdk_drag_surface_present (GdkDragSurface *drag_surface,
                                    int             width,
                                    int             height);
 
index 6aaf3362806b16ceba220d9164367ef6e69e9fec..c68d9c2eeb93a1baba33a6ae25b177b29334c228 100644 (file)
@@ -293,7 +293,7 @@ gdk_toplevel_layout_get_fullscreen (GdkToplevelLayout *layout)
  * Returns the monitor that the layout is fullscreening
  * the surface on.
  *
- * Returns: (nullable): the monitor on which @layout fullscreens
+ * Returns: (nullable) (transfer none): the monitor on which @layout fullscreens
  */
 GdkMonitor *
 gdk_toplevel_layout_get_fullscreen_monitor (GdkToplevelLayout *layout)
index aeb50e7f912eebd6ce0a5fb4e03f3ce3d9a88e39..da9d89786c4269ff666dee98b913a8eb4a740e2e 100644 (file)
@@ -45,7 +45,7 @@ GType                   gtk_shortcut_controller_get_type                (void) G
 GDK_AVAILABLE_IN_ALL
 GtkEventController *    gtk_shortcut_controller_new                     (void);
 GDK_AVAILABLE_IN_ALL
-GtkEventController *    gtk_shortcut_controller_new_for_model           (GListModel             *list);
+GtkEventController *    gtk_shortcut_controller_new_for_model           (GListModel             *model);
 
 GDK_AVAILABLE_IN_ALL
 void                    gtk_shortcut_controller_set_mnemonics_modifiers (GtkShortcutController  *self,